projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa4fb67
)
spinbutton: center-align by default
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 28 Feb 2011 20:45:51 +0000
(15:45 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Thu, 3 Mar 2011 22:48:25 +0000
(17:48 -0500)
gtk/gtkspinbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkspinbutton.c
b/gtk/gtkspinbutton.c
index 3d0875390afd5ff3ec77e285236b8589b8f3fef2..b852b6c4581ff8c0e78d80a5e4fe2b0d91271dc3 100644
(file)
--- a/
gtk/gtkspinbutton.c
+++ b/
gtk/gtkspinbutton.c
@@
-637,6
+637,8
@@
gtk_spin_button_init (GtkSpinButton *spin_button)
gtk_spin_button_set_adjustment (spin_button,
gtk_adjustment_new (0, 0, 0, 0, 0, 0));
+ gtk_entry_set_alignment (GTK_ENTRY (spin_button), 0.5);
+
context = gtk_widget_get_style_context (GTK_WIDGET (spin_button));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_SPINBUTTON);
}